package com.example.hackerweb.properties;

import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;
import java.util.List;

/**
 * Description：
 *
 * @Author: cw
 * CreateTime：2022-11-07
 */
@Component
public class RedisUtils {

    @Resource
    private RedisTemplate<String,Object> redisTemplate;


    public List lrangt(String key){
        return redisTemplate.opsForList().range(key,0,-1);
    }

}
